package com.wg.net.operations;

import com.wg.core.io.BigEndianBinaryWriter;
import com.wg.core.io.IBinaryWriter;
import com.wg.core.io.IBinaryWritable;

public class InitResponse implements IBinaryWritable {
    private String peerId;

    public String getPeerId() {
        return peerId;
    }

    public void setPeerId(String peerId) {
        this.peerId = peerId;
    }
    
    @Override
    public byte[] toBytes() {
        IBinaryWriter writer = new BigEndianBinaryWriter(128);
        writer.writeString(peerId);
        return writer.toByteArray();
    }
}
